package com.ycp.erp.login.mobel.response;

import com.one.common.model.http.base.BaseResponse;
import com.one.common.utils.StringUtils;

/**
 * Author: zhulunjun
 * Email: zhulunjun@qq.com
 * CreateDate: 2018/11/19 11:09
 * Description：默认返回参数
 **/
public class DefaultResponse extends BaseResponse {


    public boolean getResult_code() {
        return StringUtils.isNotBlank(getCode()) && !getCode().equals("2");
    }

    public boolean isSuccess(){
        return getResult_code();
    }

}
